<?php

namespace app\admin\controller;

use think\Controller;
use think\facade\Session;

class Common extends Controller
{
    //判断是否登录
    public function initialize()
    {
       if (!Session::has('admin_name')) {

           $this->redirect('admin/login/login');
       }
    }
}
